package jdmx.admin.service;

import java.util.Hashtable;

import jdmx.admin.common.HandlerSql;
import jdmx.framework.service.StaticContent;
import jdmx.framework.service.interfaces.SqlProvider;

public class AdminHandlerSqlProvider implements SqlProvider {

	public String getSql(String entityName, String statementName) {
		String sql = null;
		String key = entityName + "." + statementName; 
		Hashtable<String, Object> ht = StaticContent.getHt("SqlStatement");
		HandlerSql statement = (HandlerSql)ht.get(key);
		sql = statement.getSql();
		return sql;
	}

}
